import request from '@/utils/request'

// 查询我的减分列表
export function listMyDeduction(query) {
  return request({
    url: '/gxs/myDeduction/list',
    method: 'get',
    params: query
  })
}

// 查询我的减分详细
export function getMyDeduction(gxsId) {
  return request({
    url: '/gxs/myDeduction/' + gxsId,
    method: 'get'
  })
}

// 新增我的减分
export function addMyDeduction(data) {
  return request({
    url: '/gxs/myDeduction',
    method: 'post',
    data: data
  })
}

// 修改我的减分
export function updateMyDeduction(data) {
  return request({
    url: '/gxs/myDeduction',
    method: 'put',
    data: data
  })
}

// 删除我的减分
export function delMyDeduction(gxsId) {
  return request({
    url: '/gxs/myDeduction/' + gxsId,
    method: 'delete'
  })
}
